﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace SharepointLogReader
{
    public class LogDirManager
    {
        public static string GetLastLogDir()
        {
            Settings settings = Settings.Current;
            if (Directory.Exists(settings.LogDir))
            {
                return settings.LogDir;
            }
            return String.Empty;
        }
        public static void SaveLastLogDir(string dirLogPath)
        {
            Settings settings = Settings.Current;
            if (!settings.LogDir.Equals(dirLogPath))
            {
                settings.LogDir = dirLogPath;
                Settings.Save(settings);
            }
        }
    }
}
